#ifndef PICSHOW_H
#define PICSHOW_H

#include <QWidget>
#include <QDialog>
#include <QPixmap>
#include <QListWidgetItem>
#include <QTimer>

QT_BEGIN_NAMESPACE
namespace Ui { class Picshow; }
QT_END_NAMESPACE

class Picshow : public QDialog
{
    Q_OBJECT

public:
    Picshow(QWidget *parent = nullptr);
    ~Picshow();
    void Init();
    void Init_photo_list();
//    void find_photo_int_current_dir();
    void show_photo_thing();

private slots:
    void on_btn_short_clicked();
    void on_btn_big_clicked();
    void on_change_path_clicked();
    void on_last_photo_clicked();
    void on_next_photo_clicked();
    void on_Right_rotation_clicked();
    void on_Left_rotation_clicked();
    void on_Return_to_main_menu_clicked();
    void on_btn_close_exit_clicked();
    void on_listWidget_itemClicked(QListWidgetItem *item);
    void on_btn_auto_to_show_clicked();
    void timeout_show_photo();

private:
    Ui::Picshow *ui;
    QTimer *my_time;
    QString filename;
    QString tmp_filename;
    QString filedir;        //文件夹路径
    QStringList dirlist;
    QStringList photo_list;
    QImage image;
    int photo_w;
    int photo_h;
    int num;
    int photo_rotating;
};
#endif // PICSHOW_H
